<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>editor-markdown</title>
    <link rel="stylesheet" href="http://pandao.github.io/editor.md/examples/css/style.css" />
    <link rel="stylesheet" href="/editor/css/editormd.css" />
    <link rel="shortcut icon" href="https://pandao.github.io/editor.md/favicon.ico" type="image/x-icon" />
</head>
<body>

<div style="width: 100%;">

    <div id="test-editormd-view">
        <textarea style="display:none;" name="test-editormd-markdown-doc">

        </textarea>
    </div>

    <textarea  id="article_content" style="display: none;">
## 李振成

> 哈哈哈哈，嘻嘻嘻嘻，呼呼呼呼


```java
@GetMapping("/")
public ModelAndView index() {
	return new ModelAndView("index");
}
```
![哈哈哈](http://t2.hddhhn.com/uploads/tu/201801/9999/04fd84a337.jpg "哈哈哈")
    </textarea >

</div>

<script src="https://pandao.github.io/editor.md/examples/js/jquery.min.js"></script>

<script src="/editor/lib/marked.min.js"></script>
<script src="/editor/lib/prettify.min.js"></script>
<script src="/editor/lib/raphael.min.js"></script>
<script src="/editor/lib/underscore.min.js"></script>
<script src="/editor/lib/sequence-diagram.min.js"></script>
<script src="/editor/lib/flowchart.min.js"></script>
<script src="/editor/lib/jquery.flowchart.min.js"></script>
<script src="/editor/editormd.min.js"></script>

<script type="text/javascript">
    var testEditormdView;
    $(function() {
        testEditormdView = editormd.markdownToHTML("test-editormd-view", {
            markdown        : $("#article_content").val() ,//+ "\r\n" + $("#append-test").text(),
            //htmlDecode      : true,       // 开启 HTML 标签解析，为了安全性，默认不开启
            htmlDecode      : "style,script,iframe",  // you can filter tags decode
            //toc             : false,
            tocm            : true,    // Using [TOCM]
            //tocContainer    : "#custom-toc-container", // 自定义 ToC 容器层
            //gfm             : false,
            //tocDropdown     : true,
            // markdownSourceCode : true, // 是否保留 Markdown 源码，即是否删除保存源码的 Textarea 标签
            emoji           : true,
            taskList        : true,
            tex             : true,  // 默认不解析
            flowChart       : true,  // 默认不解析
            sequenceDiagram : true,  // 默认不解析
        });
    });
</script>

</body>
</html>